package com.递归2;

public class One {
    public void reserveNum(int[] nums,int index){
        if(index >= nums.length){
            return;
        }
        int num = nums[index];
        //System.out.println(num);
        reserveNum(nums,++index);
        System.out.println(num);
    }
    public static void main(String[] args) {
        One one = new One();
        one.reserveNum(new int[]{1,2,3,4,5,6,7,8,9},0);
    }
}
